package me.zhengjie.minbearwcs.dao.inbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.inbound.inf.InboundOrderDetailHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.inbound.InboundOrderDetailHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.inbound.history.InboundOrderDetailHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class InboundOrderDetailHistoryDaoImpl implements InboundOrderDetailHistoryDao {

    private final InboundOrderDetailHistoryMapper mapper;

    @Override
    public boolean insert(InboundOrderDetailHistory inboundOrderDetailHistory) {
        return mapper.insert(inboundOrderDetailHistory) == 1;
    }
}
